package {
	import flash.events.TimerEvent;	
	import flash.utils.Timer;	
	
	import com.googlecode.milib.base.MLBroadcastClass;
	
	/**
	 * @author Marek Brun 'minim'
	 */
	public class SomeClassWithEvents extends MLBroadcastClass {
		
		//DATA:	Number	//new random number that haz clazz ;)
		public const event_IHazNewRandomNumber : String = 'IHazNewRandomNumber';
		
		private var timer:Timer;

		public function SomeClassWithEvents() {
			
			timer=new Timer(2000);
			timer.addEventListener(TimerEvent.TIMER, onTimer);
			timer.start();
			
		}
		
//********************************************************************************************
//		events for SomeClassWithEvents
//********************************************************************************************
		protected function onTimer(event:TimerEvent):void {
			broadcastEvent(event_IHazNewRandomNumber, Math.random());
		}
		
	}
}
